home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / comm / wfiler32.zip / PXHTTP.TX_ / PXHTTP.TX
Text File  |  1997-06-05  |  781b  |  18 lines

  1. ! Firewall login example. Comments always begin with exclamation mark.
  2. ! Define timeout for waitstring command. The default is 3 seconds. You may place this timeout before the waitstring command
  3. !
  4. timeout 5
  5. ! Wait for login prompt
  6. WAITSTRING "Username: "
  7. ! Don't forget to append carriage return (^M) in the send string.
  8. SEND "jjohn^M"
  9. !Wait for password prompt
  10. WAITSTRING "Password: "
  11. ! Password prompt received. Send the password. Use $PASS in the send command. The script processor  !would prompt you for the password.
  12. SEND "$PASS^M"
  13. ! send connect command. Here I have assumed it is OPEN. $SITE and $PORT are the reserved words and would be replaced by internet host address and port from your phonebook.
  14. SEND "OPEN $SITE $PORT^M"
  15. WAITSTRING "connected"
  16. EXIT
  17.  
  18.